import { createAppContainer, createSwitchNavigator } from 'react-navigation'
import TabNavigator from './TabNavigator'
import WelcomeScreen from '../screens/WelcomeScreen'
import Login from '../screens/auth/Login'
import { createStackNavigator } from 'react-navigation-stack'
import AppWebView from '../AppWebView'
import SectionScreen from '../screens/SectionScreen'
import StaffBillScreen from '../screens/staffBill/StaffBillScreen'
import HistoryBillScreen from '../screens/staffBill/HistoryBillScreen'

const AuthStack = createStackNavigator({
  Login: Login
})

const AppStack = createStackNavigator({
  Home: TabNavigator,
  Section: SectionScreen,
  StaffBill: StaffBillScreen,
  HistoryBill: HistoryBillScreen,
  Webview: AppWebView
})

export default createAppContainer(
  createSwitchNavigator({
    Welcome: WelcomeScreen,
    Auth: AuthStack,
    App: AppStack
  })
)
